﻿using FreeSql.DataAnnotations;
using KrasDD.Attributes;

namespace KrasDD.Models
{

    [JsonObject(MemberSerialization.OptIn), Table(Name = "[innovator].[IDENTITY]", DisableSyncStructure = false)]
    [ItemType("4F83A1B4C5D6E7F8A9B0C1D2E3F4A5B8", "IDENTITY")]
    public partial class IDENTITY : AppBaseEntity
    {

        [JsonProperty, Column(StringLength = 64)]
        public string DESCRIPTION { get; set; }

        [JsonProperty, Column(DbType = "bit")]
        public bool IS_ALIAS { get; set; } = false;

        [JsonProperty, Column(StringLength = 128, IsNullable = false)]
        public string NAME { get; set; }

        [JsonProperty]
        public int? MAXIMUM_PWD_AGE { get; set; }

        [JsonProperty]
        public int? PWD_HISTORY_LENGTH { get; set; }


        #region 外键 => 导航属性，OneToMany

        [Navigate("RELATED_ID")]
        public virtual List<ACCESS> ACCESSES { get; set; }


        #endregion
    }

}
